package com.tensquare.rabbit.customer;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * Created by duizhang on 2018/12/14.
 */

@Component
public class Customer1 {

//    @RabbitHandler
    @RabbitListener(queues = "duzeyu")
    public void getMsg1(String msg){

        System.out.print("duzeyu——"+msg);
    }
    @RabbitListener(queues = "dududu")
    public void getMsg2(String msg){

        System.out.print("dududu——"+msg);
    }
    @RabbitListener(queues = "dddddd")
    public void getMsg3(String msg){

        System.out.print("dddddd——"+msg);
    }
}
